 package com.bmps.springcloud.insuredmicroservice.model.accept.resquest;

 import org.apache.commons.lang3.builder.EqualsBuilder;
 import org.apache.commons.lang3.builder.HashCodeBuilder;

 import javax.validation.Valid;
 import javax.validation.constraints.NotBlank;
 import java.io.Serializable;

 /**
  *  @author lyw
  *  @date 2019/07/24
  */
 public class DisclosureModel implements Serializable {

     @NotBlank(message="belongWho字段不能为空!")
	 private String belongWho;

	 private String impartNo;

	 private String content;

     @NotBlank(message="impartCode字段不能为空!")
	 private String impartCode;

     @NotBlank(message="impartContent字段不能为空!")
	 private String impartContent;

     @NotBlank(message="impartAnswerCode字段不能为空!")
	 private String impartAnswerCode;

     @NotBlank(message="impartAnswerValue字段不能为空!")
	 private String impartAnswerValue;

	 private String impartAnswersShow;

     @Valid
	 private AnswersListModel answersList;

     public String getBelongWho() {
         return belongWho;
     }

     public void setBelongWho(String belongWho) {
         this.belongWho = belongWho;
     }

     public String getImpartNo() {
         return impartNo;
     }

     public void setImpartNo(String impartNo) {
         this.impartNo = impartNo;
     }

     public String getContent() {
         return content;
     }

     public void setContent(String content) {
         this.content = content;
     }

     public String getImpartCode() {
         return impartCode;
     }

     public void setImpartCode(String impartCode) {
         this.impartCode = impartCode;
     }

     public String getImpartContent() {
         return impartContent;
     }

     public void setImpartContent(String impartContent) {
         this.impartContent = impartContent;
     }

     public String getImpartAnswerCode() {
         return impartAnswerCode;
     }

     public void setImpartAnswerCode(String impartAnswerCode) {
         this.impartAnswerCode = impartAnswerCode;
     }

     public String getImpartAnswerValue() {
         return impartAnswerValue;
     }

     public void setImpartAnswerValue(String impartAnswerValue) {
         this.impartAnswerValue = impartAnswerValue;
     }

     public String getImpartAnswersShow() {
         return impartAnswersShow;
     }

     public void setImpartAnswersShow(String impartAnswersShow) {
         this.impartAnswersShow = impartAnswersShow;
     }

     public AnswersListModel getAnswersList() {
         return answersList;
     }

     public void setAnswersList(AnswersListModel answersList) {
         this.answersList = answersList;
     }

     @Override
     public boolean equals(Object o) {
         if (this == o) {
             return true;
         }

         if (o == null || getClass() != o.getClass()) {
             return false;
         }

         DisclosureModel that = (DisclosureModel) o;

         return new EqualsBuilder()
                 .append(belongWho, that.belongWho)
                 .append(impartNo, that.impartNo)
                 .append(content, that.content)
                 .append(impartCode, that.impartCode)
                 .append(impartContent, that.impartContent)
                 .append(impartAnswerCode, that.impartAnswerCode)
                 .append(impartAnswerValue, that.impartAnswerValue)
                 .append(impartAnswersShow, that.impartAnswersShow)
                 .append(answersList, that.answersList)
                 .isEquals();
     }

     @Override
     public int hashCode() {
         return new HashCodeBuilder(17, 37)
                 .append(belongWho)
                 .append(impartNo)
                 .append(content)
                 .append(impartCode)
                 .append(impartContent)
                 .append(impartAnswerCode)
                 .append(impartAnswerValue)
                 .append(impartAnswersShow)
                 .append(answersList)
                 .toHashCode();
     }

     @Override
     public String toString() {
         return "DisclosureModel{" +
                 "belongWho='" + belongWho + '\'' +
                 ", impartNo='" + impartNo + '\'' +
                 ", content='" + content + '\'' +
                 ", impartCode='" + impartCode + '\'' +
                 ", impartContent='" + impartContent + '\'' +
                 ", impartAnswerCode='" + impartAnswerCode + '\'' +
                 ", impartAnswerValue='" + impartAnswerValue + '\'' +
                 ", impartAnswersShow='" + impartAnswersShow + '\'' +
                 ", answersList=" + answersList +
                 '}';
     }
 }
